import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'

import MyHead from "@/components/layzone/MyHead.vue"
import MyFooter from "@/components/layzone/myFooter.vue"

import 'vant/lib/index.css';

import '@/styles/reset.css';
import "@/styles/main.css"
import "@/utils/flexible.js";

// import './assets/main.css'


import { Lazyload } from 'vant';

const app = createApp(App)
app.component('MyHead',MyHead)
app.component('MyFooter',MyFooter)

app.use(createPinia().use(piniaPluginPersistedstate))
app.use(router)

app.use(Lazyload);   // 懒加载

app.mount('#app')
